package FifthQuestion;

public class Person {
    private String name;
    private int age;

    public Person(){

    }
    public Person(String name,int age){
     this.name=name;
     this.age=age;
    }

    public  void  display(){
        System.out.println("姓名："+name+"\t年龄:"+age);
    }

    public static void main(String[] args) {
        Person person = new Person();
        person.name="蒋金鑫";
        person.age=23;
        person.display();

        Person person1 = new Person("蒋金鑫",23);
        person1.display();
    }
}
